"""
session会话
"""

import tensorflow as tf

node1 = tf.constant(3.0, tf.float32, name="node1")
node2 = tf.constant(4.0, tf.float32, name="node2")
result = tf.add(node1, node2)

with tf.compat.v1.Session() as sess:
    print(sess.run(result))
